/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

/**
 *
 * @author juanan
 */
public class Factoria 
{
    public static final int BBDD = 1;
    public static final int FILE = 2;
    public static final int XML = 3;
    
    public static InterfazFormatos getInterfazFormatos(int tipoFormato) {
        switch(tipoFormato) {
            case BBDD:
                return new InterfazFormatosBbddImplementation();
            case FILE:
                return new InterfazFormatosCSVImplementation();
            case XML:
                return new InterfazFormatosXmlImplementation();
            default:
                return null;
        }
    }
}
